package com.heima.mongo.comment.pojos;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@NoArgsConstructor
@Document(collection = "comment-likes")
public class CommentLikes {
    //主键id
    private ObjectId commentLikesId;
    //当前登录用户
    private Integer userId;
    //评论id
    private String commentId;
    //是否点赞
    private Short operation;
    //修改时间
    private Date updateTime;
    //创建时间
    private Date createdTime;


}
